package com.xbongbong.paas.pojo.workflow.settings.vo;

import com.xbongbong.paas.toolbox.wrap.BaseVO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @author 吴峰
 * @date 2021/05/14 15:07
 */
@Getter
@Setter
@ToString
public class WorkflowEnableVO extends BaseVO {
    private static final long serialVersionUID = -6592543206173681537L;

    /**
     * 是否允许开启工作流 1：可以；0：不可以
     */
    private Integer success;
    /**
     * 节点id
     */
    private Long workflowNodeId;
    /**
     * 节点名称
     */
    private String name;

    /**
     * 节点的uid
     */
    private String nodeId;

    /**
     * 错误信息
     */
    private String message;

    public WorkflowEnableVO() {
    }

    public WorkflowEnableVO(Integer success, Long workflowNodeId, String name, String nodeId, String message) {
        this.success = success;
        this.workflowNodeId = workflowNodeId;
        this.name = name;
        this.nodeId = nodeId;
        this.message = message;
    }

    public WorkflowEnableVO(Integer success, Long workflowNodeId, String message) {
        this.success = success;
        this.workflowNodeId = workflowNodeId;
        this.message = message;
    }
}
